/**
 * 
 */
package com.haisen.lee.domain;

/**
 * @author Haisen Lee
 * 
 */
public class DirectoryItem {

	private String index;
	private String itemName;
	private long times = 0L;

	/**
	 * default constructor
	 */
	public DirectoryItem() {
		super();
	}

	@Override
	public int hashCode() {
		return this.index.hashCode() << 16 + this.itemName.hashCode();
	}

	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof DirectoryItem)) {
			return false;
		}
		DirectoryItem other = (DirectoryItem) obj;
		return this.index.equals(other.getIndex())
				&& this.itemName.equals(other.getItemName());
	}

	public String getIndex() {
		return index;
	}

	public void setIndex(String index) {
		this.index = index;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public long getTimes() {
		return times;
	}

	public void setTimes(long times) {
		this.times = times;
	}

}
